package main

import (
	"fmt"

	"gorm.io/gorm"
)

var GormDb *gorm.DB

func main() {
	databaseConf := &Databaseconf{
		User:         "root",
		Password:     "",
		DatabaseName: "",
		Host:         "",
		Port:         "3306",
	}
	err := ConnectMysql(databaseConf)
	if nil != err {
		panic(err)
	}

	err = dbMigrate(GormDb)
	if nil != err {
		fmt.Println("数据库字段同步错误")
		return
	}

}
